<html ng-app="eventApp">
<head>
    <title>12</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<script type="text/javascript" src="../js/angularjs.js"></script>
<script type="text/javascript" src="app.js"></script>
<body>
    <div ng-controller="eventContorller">
        <h4>绑定事件处理</h4>
        <input type="text" ng-model="amount">
        <button ng-click="add(amount)" class="button">加法</button>
        <a ng-click="subtract(amount)" class="button alert">减法</a>
        <h4>计算结果：{{counter}}</h4>
        <hr/>
        <h4>用户信息展示</h4>
        <hr/>
        用户姓名<span>{{person.name}}</span>
        用户年龄<span>{{person.age}}</span>
    </div>

</body>
</html>